<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>Android基础--数据存储 | 不忘初心</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="导语  数据存储介绍">
<meta property="og:type" content="article">
<meta property="og:title" content="Android基础--数据存储">
<meta property="og:url" content="http://example.com/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/index.html">
<meta property="og:site_name" content="不忘初心">
<meta property="og:description" content="导语  数据存储介绍">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://example.com/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/day02_01.jpg">
<meta property="og:image" content="http://example.com/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/file_mode.png">
<meta property="article:published_time" content="2014-10-13T01:43:23.000Z">
<meta property="article:modified_time" content="2017-07-10T06:58:13.000Z">
<meta property="article:author" content="wxyass">
<meta property="article:tag" content="Android基础">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://example.com/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/day02_01.jpg">
  
    <link rel="alternate" href="/atom.xml" title="不忘初心" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">不忘初心</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-基础/基础--数据存储" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/" class="article-date">
  <time class="dt-published" datetime="2014-10-13T01:43:23.000Z" itemprop="datePublished">2014-10-13</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Android%E5%9F%BA%E7%A1%80/">Android基础</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      Android基础--数据存储
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h4 id="导语"><a href="#导语" class="headerlink" title="导语"></a>导语</h4><blockquote>
<p> 数据存储介绍  </p>
</blockquote>
<span id="more"></span> 

<h1 id="Android-数据存储"><a href="#Android-数据存储" class="headerlink" title="Android 数据存储"></a>Android 数据存储</h1><h2 id="测试"><a href="#测试" class="headerlink" title="测试"></a>测试</h2><ul>
<li><p>黑盒测试</p>
<ul>
<li>测试人员不知道源代码</li>
</ul>
</li>
<li><p>白盒测试</p>
<ul>
<li>测试人员知道源代码, 写测试用例</li>
</ul>
</li>
</ul>
<h3 id="按测试粒度-精细度-区分"><a href="#按测试粒度-精细度-区分" class="headerlink" title="按测试粒度(精细度)区分"></a>按测试粒度(精细度)区分</h3><ul>
<li>方法测试 (function test)</li>
<li>集成测试 (integration test)</li>
<li>系统测试 (system test)</li>
</ul>
<h2 id="单元测试框架-Junit"><a href="#单元测试框架-Junit" class="headerlink" title="单元测试框架(Junit)"></a>单元测试框架(Junit)</h2><p>Android的代码只能运行在手机中的Dalvik虚拟机里, 在PC机的JVM下会报错异常. 写测试用例, 通过将测试代码上传到Android手机或模拟器中运行.</p>
<h2 id="Android下单元测试的流程"><a href="#Android下单元测试的流程" class="headerlink" title="Android下单元测试的流程"></a>Android下单元测试的流程</h2><p><img src="day02_01.jpg" alt="文件权限"></p>
<ol>
<li><p>写业务逻辑类，里面有待测试的方法</p>
<pre><code> public class CalcService &#123;
 
     public int sum(int a,int b)&#123;
         return a+b;
     &#125;
 &#125;
</code></pre>
</li>
<li><p>写测试用例类, 一个类继承AndroidTestCase</p>
</li>
<li><p>写测试方法public void testAdd() throws Exception{}</p>
<pre><code> public class TestCalcService extends AndroidTestCase&#123;
 
     public void testSum()&#123;
         CalcService cs = new CalcService();
         int result = cs.sum(12, 3);
         //断言 判断结果是否与预期一致，如果不一致，抛出异常
         assertEquals(15, result);
         
     &#125;
 &#125;
</code></pre>
</li>
<li><p>单元测试需要配置清单文件？？？？？？    </p>
<ul>
<li>在AndroidManifest.xml文件中配置</li>
<li>1 指定测试用的指令集 在manifest的子节点，包名指向MainActivity.java所在的包名</li>
<li>2 指定测试用的库 在application节点下</li>
</ul>
</li>
</ol>
<hr>
<pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    package=&quot;com.itheima.junit&quot;
    android:versionCode=&quot;1&quot;
    android:versionName=&quot;1.0&quot; &gt;

    &lt;!--    1. 指定测试用的指令集 在manifest的子节点 --&gt;
    &lt;instrumentation
        android:name=&quot;android.test.InstrumentationTestRunner&quot;
        android:targetPackage=&quot;com.itheima.junit&quot; &gt;
    &lt;/instrumentation&gt;

    &lt;application
        android:icon=&quot;@drawable/ic_launcher&quot;
        android:label=&quot;@string/app_name&quot;&gt;

            &lt;!--   2. 指定测试用的库 在application节点下--&gt;
            &lt;uses-library android:name=&quot;android.test.runner&quot;/&gt;
    
    &lt;/application&gt;
&lt;/manifest&gt;
</code></pre>
<ol start="5">
<li>选中测试方法, 右键 Run as -&gt; Android JUnit Test</li>
</ol>
<h2 id="Android-下的logcat"><a href="#Android-下的logcat" class="headerlink" title="Android 下的logcat"></a>Android 下的logcat</h2><ul>
<li>Log.v : verbose 提示  黑色</li>
<li>Log.d : debug 调试  蓝色</li>
<li>Log.i : info 提醒  绿色</li>
<li>Log.w : warn 警告  橙色</li>
<li>Log.e : error 错误  红色</li>
</ul>
<h2 id="保存数据到SD卡-mnt-sdcard-info-txt"><a href="#保存数据到SD卡-mnt-sdcard-info-txt" class="headerlink" title="保存数据到SD卡 /mnt/sdcard/info.txt"></a>保存数据到SD卡 /mnt/sdcard/info.txt</h2><ul>
<li><p>获取外置sd卡目录: Environment.getExternalStorageDirectory()</p>
</li>
<li><p>获取挂载状态: Environment.getExternalStorageState()</p>
</li>
<li><p>获取sd卡剩余空间:Environment.getExternalStorageDirectory().getUsableSpace();</p>
</li>
<li><p>示例</p>
</li>
</ul>
<hr>
<pre><code>public void login(View view) &#123;
    // 点击事件
    // 1. 获取用户名密码
    String qq = et_qq.getText().toString().trim();
    String pwd = et_pwd.getText().toString().trim();

    try &#123;
        // 检查数据, 如果有一个是空字符串, 则弹出吐司提醒？？？？？
        if (TextUtils.isEmpty(qq) || TextUtils.isEmpty(pwd)) &#123;
            // 吐司(面包), 在界面上显示一个提示, 一定记住要调用show()方法.

            // Context上下文
            Toast.makeText(this, &quot;用户名或密码不能为空&quot;, Toast.LENGTH_SHORT).show();
        &#125; else &#123;
            // System.out.println(&quot;qq: &quot; + qq + &quot; pwd: &quot; + pwd);
            // 检查是否勾选了
            boolean isChecked = cb_remember.isChecked();
            if (isChecked) &#123;
                // 要记住密码
                Log.d(TAG, &quot;勾选了记住密码&quot;);
                // 保存当前用户名密码 到sdcard
                // File file = new File(&quot;/mnt/sdcard/info.txt&quot;);
                // /storage/sdcard0
                // /mnt/storage
                // 获取外置sd卡挂载状态？？？？？
                String state = Environment.getExternalStorageState();
                if (Environment.MEDIA_MOUNTED.equals(state)) &#123;
                    // sd卡已挂载,可以写入

                    // 获取sd卡剩余空间
                    long usableSpace = Environment
                            .getExternalStorageDirectory().getUsableSpace();
                    System.out.println(&quot;usableSpace: &quot; + usableSpace);

                    // 获取外置SD卡的目录？？？？
                    File path = Environment.getExternalStorageDirectory();
                    FileOutputStream fos = new FileOutputStream(new File(
                            path, &quot;info.txt&quot;));
                    String str = qq + &quot;##&quot; + pwd;
                    fos.write(str.getBytes());
                    fos.close();

                    System.out.println(&quot;---------------------------&quot; + str);
                &#125; else &#123;
                    // sd未挂载
                    Toast.makeText(this, &quot;保存失败, 请检查sd卡&quot;, Toast.LENGTH_SHORT)
                            .show();
                &#125;
            &#125; else &#123;
                // 不记住密码
                Log.d(TAG, &quot;不记住密码&quot;);
            &#125;
        &#125;

    &#125; catch (Exception e) &#123;
        e.printStackTrace();
    &#125;
&#125;
</code></pre>
<h2 id="从SD卡读取数据-并显示到控件上"><a href="#从SD卡读取数据-并显示到控件上" class="headerlink" title="从SD卡读取数据 并显示到控件上"></a>从SD卡读取数据 并显示到控件上</h2><pre><code>    // 读取之前的数据,并显示到控件上
    try &#123;
        // 得到输入流, 读取数据
        File path = Environment.getExternalStorageDirectory();
        FileInputStream fis = new FileInputStream(
                new File(path, &quot;info.txt&quot;));
        //读取的是字符流
        BufferedReader br = new BufferedReader(new InputStreamReader(fis));
        // 读取一行
        String line = br.readLine();
        // aaa##123
        String qq = line.split(&quot;##&quot;)[0];
        String pwd = line.split(&quot;##&quot;)[1];
        et_qq.setText(qq);
        et_pwd.setText(pwd);

    &#125; catch (Exception e) &#123;
        e.printStackTrace();
    &#125;
</code></pre>
<h2 id="保存数据到内部存储设备-data-data-包名"><a href="#保存数据到内部存储设备-data-data-包名" class="headerlink" title="保存数据到内部存储设备 /data/data/包名/"></a>保存数据到内部存储设备 /data/data/包名/</h2><ul>
<li>应用私有文件夹, 默认情况下, 其他应用无法访问. 保证其数据安全</li>
<li>Context.getFilesDir() == /data/data/包名/files 用户文件目录</li>
<li>Context.getCacheDir() == /data/data/包名/cache 缓存目录</li>
</ul>
<p>示例：</p>
<pre><code>    public void login(View v) &#123;
    // 点击事件
    // 1. 获取用户名密码
    String qq = et_qq.getText().toString().trim();
    String pwd = et_pwd.getText().toString().trim();
    try &#123;
        // 检查数据, 如果有一个是空字符串, 则弹出吐司提醒
        if (TextUtils.isEmpty(qq) || TextUtils.isEmpty(pwd)) &#123;
            // 吐司(面包), 在界面上显示一个提示, 一定记住要调用show()方法.
            // Context上下文
            Toast.makeText(this, &quot;用户名或密码不能为空&quot;, Toast.LENGTH_SHORT).show();
        &#125; else &#123;
            // System.out.println(&quot;qq: &quot; + qq + &quot; pwd: &quot; + pwd);
            // 检查是否勾选了
            boolean isChecked = cb_remember.isChecked();
            if (isChecked) &#123;
                // 要记住密码
                // 保存当前用户名密码 到sdcard
                // 获取外置sd卡挂载状态
                String state = Environment.getExternalStorageState();
                if (Environment.MEDIA_MOUNTED.equals(state)) &#123;
                    // sd卡已挂载,可以写入
                    // 获取sd卡剩余空间
                    long usableSpace = Environment
                            .getExternalStorageDirectory().getUsableSpace();
                    System.out.println(&quot;usableSpace: &quot; + usableSpace);
                    // 获取外置SD卡的目录
                    File path = Environment.getExternalStorageDirectory();
                    FileOutputStream fos = new FileOutputStream(new File(
                            path, &quot;info.txt&quot;));
                    String str = qq + &quot;##&quot; + pwd;
                    fos.write(str.getBytes());
                    fos.close();

                    System.out.println(&quot;---------------------------&quot; + str);
                &#125; else &#123;
                    // sd未挂载
                    Toast.makeText(this, &quot;保存失败, 请检查sd卡&quot;, Toast.LENGTH_SHORT)
                            .show();
                &#125;
            &#125; else &#123;
                // 不记住密码
                Log.d(TAG, &quot;不记住密码&quot;);
            &#125;
        &#125;

    &#125; catch (Exception e) &#123;
        e.printStackTrace();
    &#125;
    &#125;
</code></pre>
<h2 id="Android权限机制"><a href="#Android权限机制" class="headerlink" title="Android权限机制"></a>Android权限机制</h2><ul>
<li>MODE_PRIVATE 私有文件</li>
<li>MODE_WORLD_READABLE 全局可读文件</li>
<li>MODE_WORLD_WRITEABLE 全局可写文件</li>
<li>MODE_WORLD_READABLE + MODE_WORLD_WRITEABLE 全局可读可写</li>
</ul>
<p>file_mode.png</p>
<p><img src="file_mode.png" alt="文件权限"></p>
<h2 id="重点-Android下-xml数据解析"><a href="#重点-Android下-xml数据解析" class="headerlink" title="(重点)Android下,xml数据解析"></a>(重点)Android下,xml数据解析</h2><ul>
<li><p>a. 创建xml解析器</p>
</li>
<li><pre><code>      XmlPullParser parser = Xml.newPullParser();
      
</code></pre>
</li>
<li><p>b. 初始化xml解析器, 指定解析哪个流, 以什么编码解析</p>
<pre><code>      parser.setInput(is, &quot;utf-8&quot;);
</code></pre>
</li>
<li><p>c. 解析xml数据</p>
<pre><code>      while(type != XmlPullParser.END_DOCUMENT)&#123; // 直到文档的结束
          // 读取数据
          ...
          type = parser.next(); // 到下一个
      &#125;
      
</code></pre>
</li>
<li><p>d. 扫尾工作</p>
<ul>
<li>关闭数据流</li>
</ul>
</li>
</ul>
<hr>
<pre><code>// 读取之前的数据,并显示到控件上
try &#123;
    // 得到输入流, 读取数据
    File cache = getCacheDir();
    FileInputStream fis = new FileInputStream(new File(cache,
            &quot;user.xml&quot;));
    // a. 创建xml解析器
    XmlPullParser pullParse = Xml.newPullParser();
    // b. 初始化xml解析器, 指定解析哪个流, 以什么编码解析
    pullParse.setInput(fis, &quot;UTF-8&quot;);
    // c. 解析xml数据
    int type = pullParse.getEventType();// xml标签节点类型 头标签返回类型是0 根结束标签是1
    while (type != XmlPullParser.END_DOCUMENT) &#123;// 循环的结束条件
        if (type == XmlPullParser.START_TAG) &#123;
            if (&quot;qq&quot;.equals(pullParse.getName())) &#123;
                String qq = pullParse.nextText();
                et_qq.setText(qq);
            &#125; else if (&quot;pwd&quot;.equals(pullParse.getName())) &#123;
                String pwd = pullParse.nextText();
                et_pwd.setText(pwd);
            &#125;
        &#125;
        // 循环 下一个
        type = pullParse.next();
    &#125;
    // d 关闭数据流
    fis.close();

&#125; catch (Exception e) &#123;
    e.printStackTrace();
    System.out.println(&quot;解析异常!&quot;);
&#125;

        
</code></pre>
<h2 id="Android下-xml的生成-序列化-（将JavaBean信息存放到xml中）"><a href="#Android下-xml的生成-序列化-（将JavaBean信息存放到xml中）" class="headerlink" title="Android下,xml的生成 (序列化) （将JavaBean信息存放到xml中）"></a>Android下,xml的生成 (序列化) （将JavaBean信息存放到xml中）</h2><p>a. 创建Xml序列化器</p>
<pre><code>    XmlSerializer serializer = Xml.newSerializer();
                 
</code></pre>
<p>b. 初始化xml序列化器, 设置输出流, 指定编码集</p>
<pre><code>    serializer.setOutput(fos, &quot;utf-8&quot;);
                 
</code></pre>
<p>c. 写xml数据<br>        // 文档的开头<br>        serializer.startDocument(“utf-8”, true);<br>        serializer.startTag(null, “info”);</p>
<pre><code>    serializer.startTag(null, &quot;qq&quot;);
    serializer.text(qq);
    serializer.endTag(null, &quot;qq&quot;);
    
    serializer.startTag(null, &quot;pwd&quot;);
    serializer.text(pwd);
    serializer.endTag(null, &quot;pwd&quot;);
    
    serializer.endTag(null, &quot;info&quot;);
         // 文档的结束
    serializer.endDocument();
</code></pre>
<p>d. fos.close();</p>
<p>示例：</p>
<pre><code>public void login(View v) &#123;
    // 1. 获取用户名密码
    String qq = et_qq.getText().toString().trim();
    String pwd = et_pwd.getText().toString().trim();

    try &#123;
        // 检查数据, 如果有一个是空字符串, 则弹出吐司提醒
        if (TextUtils.isEmpty(qq) || TextUtils.isEmpty(pwd)) &#123;
            // 吐司(面包), 在界面上显示一个提示, 一定记住要调用show()方法.
            // Context上下文
            Toast.makeText(this, &quot;用户名或密码不能为空&quot;, Toast.LENGTH_SHORT).show();
        &#125; else &#123;
            // 检查是否勾选了
            boolean isChecked = cb_remember.isChecked();
            if (isChecked) &#123;
                // 要记住密码
                // 获取临时缓存目录cache
                File cacheDir = this.getCacheDir();
                FileOutputStream fos = new FileOutputStream(new File(
                        cacheDir, &quot;user.xml&quot;));
                // a. 创建Xml序列化器
                XmlSerializer serializer = Xml.newSerializer();
                // b. 初始化xml序列化器, 设置输出流, 指定编码集
                serializer.setOutput(fos, &quot;utf-8&quot;);
                // c. 写xml数据
                // 文档的开头
                serializer.startDocument(&quot;utf-8&quot;, true);
                serializer.startTag(null, &quot;info&quot;);

                serializer.startTag(null, &quot;qq&quot;);
                serializer.text(qq);
                serializer.endTag(null, &quot;qq&quot;);

                serializer.startTag(null, &quot;pwd&quot;);
                serializer.text(pwd);
                serializer.endTag(null, &quot;pwd&quot;);

                serializer.endTag(null, &quot;info&quot;);
                // 文档的结束
                serializer.endDocument();

                Toast.makeText(this, &quot;保存成功&quot;, 0).show();

            &#125; else &#123;
                // 不记住密码
                Log.d(TAG, &quot;不记住密码&quot;);
            &#125;
        &#125;

    &#125; catch (Exception e) &#123;
        e.printStackTrace();
    &#125;

&#125;
</code></pre>
<ul>
<li>OutOfMemory (OOM) 内存溢出</li>
</ul>
<h2 id="SharedPreference"><a href="#SharedPreference" class="headerlink" title="SharedPreference"></a>SharedPreference</h2><ul>
<li>保存位置: /data/data/包名/shared_prefs/xxx.xml</li>
</ul>
<ol>
<li><p>初始化SharedPreferences  arg0:文件名  arg1:权限</p>
<pre><code> SharedPreferences sp = this.getSharedPreferences(&quot;config&quot;, MODE_PRIVATE);
</code></pre>
</li>
<li><p>通过SharedPreferences获取编辑器</p>
<pre><code> Editor editor = sp.edit();
</code></pre>
</li>
<li><p>写入数据</p>
<pre><code> editor.putString(&quot;qq&quot;, qq);
 editor.putString(&quot;pwd&quot;, pwd);
 editor.putBoolean(&quot;isChecked&quot;, isChecked);
         
</code></pre>
</li>
<li><p>提交数据</p>
<pre><code> editor.commit();
</code></pre>
</li>
</ol>
<p>-示例—————————</p>
<pre><code>//点击事件
public void login(View v)&#123;
    // 点击事件
    // 1. 获取用户名密码
    String qq = et_qq.getText().toString().trim();
    String pwd = et_pwd.getText().toString().trim();
    
    //2 用户名密码是否为空
    if (TextUtils.isEmpty(qq)||TextUtils.isEmpty(pwd)) &#123;
        //用户名或密码为空 吐司
        Toast.makeText(this, &quot;用户名或密码不能为空&quot;, 0).show();
    &#125; else &#123;
        //用户名和密码都不为空
        //判断是否记住密码
        boolean isCheck = cb_remember.isChecked();
        if (isCheck) &#123;
            //记住用户名密码，将其保存在内部存储设备
            //初始化SharedPreferences
            SharedPreferences sp = this.getSharedPreferences(&quot;user&quot;,MODE_PRIVATE );
            // 2. 通过SharedPreferences获取编辑器
             Editor edit = sp.edit();
            // 3. 写入数据
             edit.putString(&quot;qq&quot;, qq);
             edit.putString(&quot;pwd&quot;, pwd);
             edit.putBoolean(&quot;isCheck&quot;, isCheck);
            // 4. 提交数据
            edit.commit();
            Toast.makeText(this,&quot;保存成功&quot;, 0).show();
        &#125; else &#123;
            //不记住用户名密码
            Toast.makeText(this,&quot;没保存登录成功&quot;, 0).show();
        &#125;
    &#125;
&#125;
</code></pre>
<h3 id="读取数据"><a href="#读取数据" class="headerlink" title="读取数据"></a>读取数据</h3><pre><code>    // 1. 初始化SharedPreferences
    SharedPreferences sp = this.getSharedPreferences(&quot;config&quot;, MODE_PRIVATE);

    // 2. 读取数据, 设置数据
    String qq = sp.getString(&quot;qq&quot;, &quot;&quot;);
    boolean isChecked = sp.getBoolean(&quot;isChecked&quot;, false);
</code></pre>
<p>-示例——————————-</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) &#123;
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    // 查找用户名输入框
    et_qq = (EditText) findViewById(R.id.et_qq);
    // 查找密码输入框
    et_pwd = (EditText) findViewById(R.id.et_pwd);
    // 查找CheckBox
    cb_remember = (CheckBox) findViewById(R.id.cb_remember);
    
    //回显用户名密码，显示在控件上
    //1 初始化SharedPreferences
    SharedPreferences sp = this.getSharedPreferences(&quot;user&quot;,MODE_PRIVATE );
    //2 读取数据，设置数据
    String qq = sp.getString(&quot;qq&quot;, &quot;&quot;);
    et_qq.setText(qq);
    
    String pwd = sp.getString(&quot;pwd&quot;, &quot;&quot;);
    et_pwd.setText(pwd);
    
    boolean isCheck = sp.getBoolean(&quot;isCheck&quot;,false);
    cb_remember.setChecked(isCheck);
&#125;
</code></pre>
<ul>
<li><h1 id="超级管理员用户"><a href="#超级管理员用户" class="headerlink" title="超级管理员用户"></a>超级管理员用户</h1></li>
<li>$ 普通用户</li>
</ul>
<p>836959067</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8/" data-id="ckvc340qv006f5dfy2v2k7u9l" data-title="Android基础--数据存储" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Android%E5%9F%BA%E7%A1%80/" rel="tag">Android基础</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E6%95%B0%E6%8D%AE%E5%BA%93&%E5%BC%B9%E6%A1%86/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          Android基础--数据库&amp;弹框
        
      </div>
    </a>
  
  
    <a href="/2014/10/13/%E5%9F%BA%E7%A1%80/%E5%9F%BA%E7%A1%80--%E5%B8%83%E5%B1%80%E6%96%87%E4%BB%B6/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Android基础--布局文件</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Activity/">Activity</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android-Studio%E4%BB%8B%E7%BB%8D/">Android Studio介绍</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android%E5%9F%BA%E7%A1%80/">Android基础</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android%E6%A8%A1%E6%9D%BF/">Android模板</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/BaseRecyclerViewAdapterHelper/">BaseRecyclerViewAdapterHelper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Bug%E9%97%AE%E9%A2%98/">Bug问题</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Button/">Button</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/EditText/">EditText</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Fragment/">Fragment</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Gradle/">Gradle</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/ListView/">ListView</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MD%E8%AF%AD%E6%B3%95/">MD语法</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MyEclipse/">MyEclipse</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/OSS/">OSS</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/RecyclerView/">RecyclerView</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SQL%E5%9F%BA%E7%A1%80/">SQL基础</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/UI%E6%8E%A7%E4%BB%B6/">UI控件</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/View/">View</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/ViewPager/">ViewPager</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/View%E7%AF%87/">View篇</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/as%E6%8A%A5%E9%94%99/">as报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/jar%E5%8C%85/">jar包</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/targetSdkVersion/">targetSdkVersion</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%83%E7%89%9B%E4%BA%91/">七牛云</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BA%8C%E7%BB%B4%E7%A0%81/">二维码</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%A0%E9%99%A4%E5%9B%BE%E7%89%87%E7%BC%93%E5%AD%98/">删除图片缓存</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/">升级报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/">博客搭建</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8E%BB%E6%8E%89v7%E5%8C%85/">去掉v7包</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/">图片处理</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%A4%9A%E5%AA%92%E4%BD%93/">多媒体</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%AE%9A%E5%88%B6%E7%B1%BB/">定制类</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B0%8F%E7%B1%B3%E6%89%8B%E6%9C%BA/">小米手机</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/">广播机制</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/">微博分享</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%89%93%E5%8C%85APK%E6%8A%A5%E9%94%99/">打包APK报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/">持久化存储</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%97%B6%E9%97%B4%E9%80%89%E6%8B%A9DatePicker/">时间选择DatePicker</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9C%8D%E5%8A%A1/">服务</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9D%83%E9%99%90/">权限</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/">构建基类</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%B5%8B%E8%AF%95/">测试</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%9B%91%E5%90%AC%E9%94%81%E5%B1%8F/">监听锁屏</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%B3%BB%E7%BB%9F%E9%A1%B5%E9%9D%A2%E8%B7%B3%E8%BD%AC/">系统页面跳转</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/">艺术探索</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%AF%BB%E5%8F%96txt/">读取txt</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%BE%93%E5%85%A5%E6%B3%95/">输入法</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%9F%B3%E4%B9%90%E6%92%AD%E6%94%BE%E5%99%A8/">音乐播放器</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%BB%91%E9%A9%AC%E5%8D%AB%E5%A3%AB/">黑马卫士</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Activity/" rel="tag">Activity</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android-Studio/" rel="tag">Android Studio</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android-Studio%E4%BB%8B%E7%BB%8D/" rel="tag">Android Studio介绍</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android%E5%9F%BA%E7%A1%80/" rel="tag">Android基础</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android%E6%A8%A1%E6%9D%BF/" rel="tag">Android模板</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/BaseRecyclerViewAdapterHelper/" rel="tag">BaseRecyclerViewAdapterHelper</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Bug%E9%97%AE%E9%A2%98/" rel="tag">Bug问题</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Button/" rel="tag">Button</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/EditText/" rel="tag">EditText</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Fragment/" rel="tag">Fragment</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Gradle/" rel="tag">Gradle</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ListView/" rel="tag">ListView</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/MD%E8%AF%AD%E6%B3%95/" rel="tag">MD语法</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/MyEclipse/" rel="tag">MyEclipse</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/OSS/" rel="tag">OSS</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/RecyclerView/" rel="tag">RecyclerView</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/SQL%E5%9F%BA%E7%A1%80/" rel="tag">SQL基础</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/UI%E6%8E%A7%E4%BB%B6/" rel="tag">UI控件</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/View/" rel="tag">View</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ViewPager/" rel="tag">ViewPager</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/View%E7%AF%87/" rel="tag">View篇</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/as%E6%8A%A5%E9%94%99/" rel="tag">as报错</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jar%E5%8C%85/" rel="tag">jar包</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/targetSdkVersion/" rel="tag">targetSdkVersion</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E4%B8%83%E7%89%9B%E4%BA%91/" rel="tag">七牛云</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/" rel="tag">升级报错</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" rel="tag">博客搭建</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/" rel="tag">图片处理</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%A4%9A%E5%AA%92%E4%BD%93/" rel="tag">多媒体</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%B7%A5%E4%BD%9C%E9%97%AE%E9%A2%98/" rel="tag">工作问题</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/" rel="tag">广播机制</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BA%94%E7%94%A8%E8%AF%A6%E6%83%85/" rel="tag">应用详情</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/" rel="tag">微博分享</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/" rel="tag">持久化存储</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9C%8D%E5%8A%A1/" rel="tag">服务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9D%83%E9%99%90/" rel="tag">权限</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/" rel="tag">构建基类</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%94%9F%E6%B4%BB/" rel="tag">生活</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%BB%83%E6%89%8B/" rel="tag">练手</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/" rel="tag">艺术探索</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" rel="tag">输入法</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E9%AB%98%E7%BA%A7%E6%8A%80%E5%B7%A7/" rel="tag">高级技巧</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Activity/" style="font-size: 12.5px;">Activity</a> <a href="/tags/Android-Studio/" style="font-size: 10px;">Android Studio</a> <a href="/tags/Android-Studio%E4%BB%8B%E7%BB%8D/" style="font-size: 12.5px;">Android Studio介绍</a> <a href="/tags/Android%E5%9F%BA%E7%A1%80/" style="font-size: 20px;">Android基础</a> <a href="/tags/Android%E6%A8%A1%E6%9D%BF/" style="font-size: 10px;">Android模板</a> <a href="/tags/BaseRecyclerViewAdapterHelper/" style="font-size: 10px;">BaseRecyclerViewAdapterHelper</a> <a href="/tags/Bug%E9%97%AE%E9%A2%98/" style="font-size: 10px;">Bug问题</a> <a href="/tags/Button/" style="font-size: 10px;">Button</a> <a href="/tags/EditText/" style="font-size: 10px;">EditText</a> <a href="/tags/Fragment/" style="font-size: 18.75px;">Fragment</a> <a href="/tags/Gradle/" style="font-size: 10px;">Gradle</a> <a href="/tags/ListView/" style="font-size: 17.5px;">ListView</a> <a href="/tags/MD%E8%AF%AD%E6%B3%95/" style="font-size: 11.25px;">MD语法</a> <a href="/tags/MyEclipse/" style="font-size: 13.75px;">MyEclipse</a> <a href="/tags/OSS/" style="font-size: 11.25px;">OSS</a> <a href="/tags/RecyclerView/" style="font-size: 12.5px;">RecyclerView</a> <a href="/tags/SQL%E5%9F%BA%E7%A1%80/" style="font-size: 10px;">SQL基础</a> <a href="/tags/UI%E6%8E%A7%E4%BB%B6/" style="font-size: 15px;">UI控件</a> <a href="/tags/View/" style="font-size: 10px;">View</a> <a href="/tags/ViewPager/" style="font-size: 10px;">ViewPager</a> <a href="/tags/View%E7%AF%87/" style="font-size: 10px;">View篇</a> <a href="/tags/as%E6%8A%A5%E9%94%99/" style="font-size: 10px;">as报错</a> <a href="/tags/jar%E5%8C%85/" style="font-size: 10px;">jar包</a> <a href="/tags/targetSdkVersion/" style="font-size: 10px;">targetSdkVersion</a> <a href="/tags/%E4%B8%83%E7%89%9B%E4%BA%91/" style="font-size: 10px;">七牛云</a> <a href="/tags/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/" style="font-size: 10px;">升级报错</a> <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" style="font-size: 12.5px;">博客搭建</a> <a href="/tags/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/" style="font-size: 15px;">图片处理</a> <a href="/tags/%E5%A4%9A%E5%AA%92%E4%BD%93/" style="font-size: 12.5px;">多媒体</a> <a href="/tags/%E5%B7%A5%E4%BD%9C%E9%97%AE%E9%A2%98/" style="font-size: 16.25px;">工作问题</a> <a href="/tags/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/" style="font-size: 12.5px;">广播机制</a> <a href="/tags/%E5%BA%94%E7%94%A8%E8%AF%A6%E6%83%85/" style="font-size: 10px;">应用详情</a> <a href="/tags/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/" style="font-size: 10px;">微博分享</a> <a href="/tags/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/" style="font-size: 13.75px;">持久化存储</a> <a href="/tags/%E6%9C%8D%E5%8A%A1/" style="font-size: 12.5px;">服务</a> <a href="/tags/%E6%9D%83%E9%99%90/" style="font-size: 10px;">权限</a> <a href="/tags/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/" style="font-size: 10px;">构建基类</a> <a href="/tags/%E7%94%9F%E6%B4%BB/" style="font-size: 11.25px;">生活</a> <a href="/tags/%E7%BB%83%E6%89%8B/" style="font-size: 11.25px;">练手</a> <a href="/tags/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/" style="font-size: 10px;">艺术探索</a> <a href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" style="font-size: 10px;">输入法</a> <a href="/tags/%E9%AB%98%E7%BA%A7%E6%8A%80%E5%B7%A7/" style="font-size: 11.25px;">高级技巧</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/">November 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">August 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">July 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/">June 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">April 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">March 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/">February 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">September 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/10/">October 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/04/">April 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/01/">January 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/05/">May 2012</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2017/11/03/Android%20Studio/Github%E4%B8%8A%E6%8F%90%E4%BA%A4%E4%BB%A3%E7%A0%81/">Github上提交代码</a>
          </li>
        
          <li>
            <a href="/2017/10/31/RecyclerView/BaseRecyclerViewAdapterHelper%E5%BA%93%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/">BaseRecyclerViewAdapterHelper库的基本使用方法</a>
          </li>
        
          <li>
            <a href="/2017/10/31/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/%E4%B8%83%E7%89%9B%E4%BA%91--%E4%B8%83%E7%89%9B%E4%BA%91%E5%BF%AB%E9%80%9F%E4%B8%8A%E4%BC%A0%E5%9B%BE%E7%89%87/">七牛云快速上传图片</a>
          </li>
        
          <li>
            <a href="/2017/10/31/Gradle/Gradle--Gradle%E6%B7%BB%E5%8A%A0%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%93%E6%8A%A5%E5%BC%82%E5%B8%B8/">Gradle添加第三方库报异常</a>
          </li>
        
          <li>
            <a href="/2017/10/26/Android%20Studio/%E8%A7%A3%E5%86%B3Android-Studio-Gradle-%E9%94%99%E8%AF%AF-%E7%BC%96%E7%A0%81GBK%E7%9A%84%E4%B8%8D%E5%8F%AF%E6%98%A0%E5%B0%84%E5%AD%97%E7%AC%A6/">解决Android Studio Gradle 错误 编码GBK的不可映射字符</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 wxyass<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.4.1.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>